#include<bits/stdc++.h>

using namespace std;

void f(int *x) {//pass by pointer

    ++*x;
}

int main() {
    int x = 3;

    f(&x);
    cout << x;


    return 0;
}
